<!--
 * @Author: 刘霁雯
 * @Description: 已发货
 -->
<template>
    <div>
        <cli-title-saler></cli-title-saler>
        <div class="orderList">
            <order-list :list="1" :order-list="orderList"></order-list>
        </div>
    </div>
</template>

<script>
    import CliTitleSaler from "../../../components/base/cliTitleSaler";
    import OrderList from "../../../components/base/orderList";
    import Cookie from "js-cookie";
    import POST from "../../../api/POST"
    export default {
        components: {OrderList, CliTitleSaler},
        data () {
            return {
                orderList:[
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    },
                    {
                        pic1: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
                        productname:'3333',
                        num:'3',
                        price:'333',
                        logistic:'123456789'
                    }
                ]
            }
        },
        mounted(){
            this.unshippedOrder()
        },
        methods: {
            unshippedOrder(){
                let data={
                    token:Cookie.get('token')
                }
                POST.shippedOrder(data).then(res=>{
                    this.orderList = res;
                    console.log(res)
                })
            }
        }
    }
</script>
<style scope>
    .orderList {
        position: absolute;
        right: 0;
        left: 0;
        top: 65px;
        margin: auto;
    }

</style>
